package oa.hleast.xswl.pojo.vo.chat;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * cms_chat_message_log
 *
 * @author 302
 */
@ApiModel(value = "com.CmsChatMessageLog客服系统-对话消息记录")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CmsChatMessageLogVo implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 聊天ID  等于用户ID值
     */
    @ApiModelProperty(value = "聊天ID  等于用户ID值")
    private Long chatId;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private Long chatterId;

    /**
     * 用户类型
     */
    @ApiModelProperty(value = "用户类型")
    private String chatterType;

    /**
     * 用户头像
     */
    @ApiModelProperty(value = "用户头像")
    private String userAvatar;

    /**
     * 内容
     */
    @ApiModelProperty(value = "内容")
    private String content;

    /**
     * 类型
     */
    @ApiModelProperty(value = "类型")
    private String type;

    /**
     * 附件地址
     */
    @ApiModelProperty(value = "附件地址")
    private String assetUrl;

    /**
     * 语音时长
     */
    @ApiModelProperty(value = "语音时长")
    private String voiceDuration;

    /**
     * 语音是否播放（默认false）
     */
    @ApiModelProperty(value = "语音是否播放（默认false）")
    private Boolean voiceAnimationPlay;


    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    // @JsonSerialize(using = Date2TsStrSerializer.class)
    private Date gmtCreate;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "格式化创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date gmtCreateDate;
}